package org.foj.dao.issue;

import org.foj.builder.IssueBuilder;
import org.foj.model.Issue;

/**
 * @author jeremy anderson
 */
public class IssueFixture {

    public static final Issue issueNumber1;
    public static final Issue issueNumber2;
    public static final Issue issueNumber3;
    public static final Issue issueNumber4;
    public static final Issue issueNumber5;


    static {

        issueNumber1 = new IssueBuilder()
                .withId(1L)
                .withProject("flexbugs")
                .withDescription("Issue Number 1")
                .withType("bug")
                .withStatus("open")
                .withSeverity("4")
                .build();

        issueNumber2 = new IssueBuilder()
                .withId(2L)
                .withProject("flexbugs")
                .withDescription("Issue Number 2")
                .withType("enhancement")
                .withStatus("closed")
                .withSeverity("3")
                .build();

        issueNumber3 = new IssueBuilder()
                .withId(3L)
                .withProject("another project")
                .withDescription("Issue Number 3")
                .withType("enhancement")
                .withStatus("open")
                .withSeverity("3")
                .build();

        issueNumber4 = new IssueBuilder()
                .withId(4L)
                .withProject("yet another project")
                .withDescription("Issue Number 4")
                .withType("bug")
                .withStatus("closed")
                .withSeverity("1")
                .build();

        issueNumber5 = new IssueBuilder()
                .withId(5L)
                .withProject("yet another project")
                .withDescription("Issue Number 5")
                .withType("enhancement")
                .withStatus("closed")
                .withSeverity("4")
                .build();
    }
}
